package com.excellent.item.service;

import com.excellent.common.PageResult;
import com.excellent.item.pojo.Brand;

import java.util.List;

/**
 * @author Xxacker
 */
public interface BrandService {

    /*根据查询条件分页并排序查询品牌信息*/
    public PageResult<Brand> queryBrandsByPage(String key, Integer page, Integer rows, String sortBy, Boolean desc);

    /*新增品牌*/
    public void saveBrand(Brand brand, List<Long> cids);

    /*查询品牌信息列表*/
    public List<Brand> queryBrandsByCid(Long cid);

    /*根据id查询品牌信息*/
    public Brand queryBrandsById(Long id);

    /*修改品牌*/
    public void updateBrand(Brand brand, List<Long> cids);

    /*删除品牌*/
    public void deleteBrand(Brand brand);
}
